import { Entity, Column } from "typeorm";
import { BaseEntity } from "../base.entity";
// 商品分类
@Entity()
export class Swiper extends BaseEntity {
  @Column({
    length: 255,
    comment: "图片地址",
  })
  url: string;

  @Column({ comment: "商品类型id" })
  type_id: number;

  @Column({ comment: "商品id" })
  goods_id: number;

  @Column({
    default: "1",
    length: 2,
    comment: "状态 1 启用 2 禁用 ",
  })
  status: string;

  @Column({ default: "", comment: "备注" })
  des: string;
}
